package csv

import "fmt"

type ConfigBanWords struct {
	Id  int
	Txt string
}

var ConfigBanWordsSlice []*ConfigBanWords

func LoadCsv() {
	ConfigBanWordsSlice = append(ConfigBanWordsSlice,
		&ConfigBanWords{
			Id:  1,
			Txt: "外挂",
		},
		&ConfigBanWords{
			Id:  2,
			Txt: "辅助",
		},
		&ConfigBanWords{
			Id:  3,
			Txt: "微信",
		},
		&ConfigBanWords{
			Id:  4,
			Txt: "代练",
		},
		&ConfigBanWords{
			Id:  5,
			Txt: "赚钱",
		},
	)
}

func GetBanWordsBase() []string {
	relString := make([]string, 0)
	for _, v := range ConfigBanWordsSlice {
		relString = append(relString, v.Txt)
	}
	return relString
}

func init() {
	LoadCsv()
	fmt.Println("csv_banword初始化")
}
